package evaluator

import (
	"dolphin_plus/object"
)

var builtins map[string]*object.Builtin

func initBuiltins() {
	builtins = map[string]*object.Builtin{
		"len":   object.GetBuiltinByName("len"),
		"puts":  object.GetBuiltinByName("puts"),
		"first": object.GetBuiltinByName("first"),
		"last":  object.GetBuiltinByName("last"),
		"rest":  object.GetBuiltinByName("rest"),
		"push":  object.GetBuiltinByName("push"),
		"exit":  object.GetBuiltinByName("exit"),
	}
}

func init() {
	initBuiltins()
}
